layui.define(['jquery'],
    function (exports) {
        var $ = layui.jquery;
        var kaCurrentUser = new function () {
            this.get = function () { // 获取
                var kaSessionCurrentUser = {};
                layui.kaAjax.ajax(layui.kaBgUrl.url("getCurrentUser"), function (rs) {
                    if (rs.code == 200) {
                        sessionStorage.setItem("ka_session_storage_current_user", JSON.stringify(rs));
                        kaSessionCurrentUser = rs;
                    }
                }, {});
                return kaSessionCurrentUser;
            }
            this.clear = function () { // 删除
            }
        };
        exports('kaCurrentUser', kaCurrentUser);
    }
)